package com.itheima.d2_pool;

/**
 * 1.基于Demo01的需求定义的任务类
 */
public class MyRunnable implements Runnable {
    private int num;

    public MyRunnable(int num) {
        this.num = num;
    }
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + "执行任务：" + num);

       /* if (num == 3) {
            System.out.println(3 / 0);
        }*/
    }
}
